<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE DeriveGeneric #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# LANGUAGE GeneralizedNewtypeDeriving #-}</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- Module      :  Distribution.Package</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Copyright   :  Isaac Jones 2003-2004</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- License     :  BSD3</span><span>
</span><span id="line-10"></span><span class="hs-comment">--</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- Maintainer  :  cabal-devel@haskell.org</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-13"></span><span class="hs-comment">--</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Defines a package identifier along with a parser and pretty printer for it.</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- 'PackageIdentifier's consist of a name and an exact version. It also defines</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- a 'Dependency' data type. A dependency is a package name and a version</span><span>
</span><span id="line-17"></span><span class="hs-comment">-- range, like @\&quot;foo &gt;= 1.2 &amp;&amp; &lt; 2\&quot;@.</span><span>
</span><span id="line-18"></span><span>
</span><span id="line-19"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.Package</span><span>
</span><span id="line-20"></span><span>  </span><span class="hs-special">(</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.AbiHash.html"><span class="hs-identifier">Distribution.Types.AbiHash</span></a></span><span>
</span><span id="line-21"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.ComponentId.html"><span class="hs-identifier">Distribution.Types.ComponentId</span></a></span><span>
</span><span id="line-22"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.PackageId.html"><span class="hs-identifier">Distribution.Types.PackageId</span></a></span><span>
</span><span id="line-23"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.UnitId.html"><span class="hs-identifier">Distribution.Types.UnitId</span></a></span><span>
</span><span id="line-24"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.Module.html"><span class="hs-identifier">Distribution.Types.Module</span></a></span><span>
</span><span id="line-25"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.PackageName.html"><span class="hs-identifier">Distribution.Types.PackageName</span></a></span><span>
</span><span id="line-26"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.PkgconfigName.html"><span class="hs-identifier">Distribution.Types.PkgconfigName</span></a></span><span>
</span><span id="line-27"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Distribution.Types.Dependency.html"><span class="hs-identifier">Distribution.Types.Dependency</span></a></span><span>
</span><span id="line-28"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier">Package</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#packageName"><span class="hs-identifier">packageName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#packageVersion"><span class="hs-identifier">packageVersion</span></a></span><span>
</span><span id="line-29"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#HasMungedPackageId"><span class="hs-identifier">HasMungedPackageId</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#mungedName%27"><span class="hs-identifier">mungedName'</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#mungedVersion%27"><span class="hs-identifier">mungedVersion'</span></a></span><span>
</span><span id="line-30"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#HasUnitId"><span class="hs-identifier">HasUnitId</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-31"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Package.html#PackageInstalled"><span class="hs-identifier">PackageInstalled</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-32"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-33"></span><span>
</span><span id="line-34"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-35"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span>
</span><span id="line-36"></span><span>
</span><span id="line-37"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Version.html"><span class="hs-identifier">Distribution.Version</span></a></span><span>
</span><span id="line-38"></span><span>         </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="Distribution.Types.Version.html#Version"><span class="hs-identifier">Version</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-39"></span><span>
</span><span id="line-40"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.AbiHash.html"><span class="hs-identifier">Distribution.Types.AbiHash</span></a></span><span>
</span><span id="line-41"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.ComponentId.html"><span class="hs-identifier">Distribution.Types.ComponentId</span></a></span><span>
</span><span id="line-42"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.Dependency.html"><span class="hs-identifier">Distribution.Types.Dependency</span></a></span><span>
</span><span id="line-43"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.MungedPackageId.html"><span class="hs-identifier">Distribution.Types.MungedPackageId</span></a></span><span>
</span><span id="line-44"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.PackageId.html"><span class="hs-identifier">Distribution.Types.PackageId</span></a></span><span>
</span><span id="line-45"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.UnitId.html"><span class="hs-identifier">Distribution.Types.UnitId</span></a></span><span>
</span><span id="line-46"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.Module.html"><span class="hs-identifier">Distribution.Types.Module</span></a></span><span>
</span><span id="line-47"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.MungedPackageName.html"><span class="hs-identifier">Distribution.Types.MungedPackageName</span></a></span><span>
</span><span id="line-48"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.PackageName.html"><span class="hs-identifier">Distribution.Types.PackageName</span></a></span><span>
</span><span id="line-49"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.PkgconfigName.html"><span class="hs-identifier">Distribution.Types.PkgconfigName</span></a></span><span>
</span><span id="line-50"></span><span>
</span><span id="line-51"></span><span class="hs-comment">-- | Class of things that have a 'PackageIdentifier'</span><span>
</span><span id="line-52"></span><span class="hs-comment">--</span><span>
</span><span id="line-53"></span><span class="hs-comment">-- Types in this class are all notions of a package. This allows us to have</span><span>
</span><span id="line-54"></span><span class="hs-comment">-- different types for the different phases that packages go though, from</span><span>
</span><span id="line-55"></span><span class="hs-comment">-- simple name\/id, package description, configured or installed packages.</span><span>
</span><span id="line-56"></span><span class="hs-comment">--</span><span>
</span><span id="line-57"></span><span class="hs-comment">-- Not all kinds of packages can be uniquely identified by a</span><span>
</span><span id="line-58"></span><span class="hs-comment">-- 'PackageIdentifier'. In particular, installed packages cannot, there may be</span><span>
</span><span id="line-59"></span><span class="hs-comment">-- many installed instances of the same source package.</span><span>
</span><span id="line-60"></span><span class="hs-comment">--</span><span>
</span><span id="line-61"></span><span class="hs-keyword">class</span><span> </span><span id="Package"><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier hs-var">Package</span></a></span></span><span> </span><span id="local-6989586621679660179"><span class="annot"><a href="#local-6989586621679660179"><span class="hs-identifier hs-type">pkg</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-62"></span><span>  </span><span id="packageId"><span class="annot"><a href="Distribution.Package.html#packageId"><span class="hs-identifier hs-type">packageId</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679660179"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.PackageId.html#PackageIdentifier"><span class="hs-identifier hs-type">PackageIdentifier</span></a></span><span>
</span><span id="line-63"></span><span>
</span><span id="line-64"></span><span id="local-6989586621679660193"><span class="annot"><a href="Distribution.Package.html#mungedName%27"><span class="hs-identifier hs-type">mungedName'</span></a></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Package.html#HasMungedPackageId"><span class="hs-identifier hs-type">HasMungedPackageId</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660193"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679660193"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.MungedPackageName.html#MungedPackageName"><span class="hs-identifier hs-type">MungedPackageName</span></a></span></span><span>
</span><span id="line-65"></span><span id="mungedName%27"><span class="annot"><span class="annottext">mungedName' :: forall pkg. HasMungedPackageId pkg =&gt; pkg -&gt; MungedPackageName
</span><a href="Distribution.Package.html#mungedName%27"><span class="hs-identifier hs-var hs-var">mungedName'</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">MungedPackageId -&gt; MungedPackageName
</span><a href="Distribution.Types.MungedPackageId.html#mungedName"><span class="hs-identifier hs-var hs-var">mungedName</span></a></span><span>    </span><span class="annot"><span class="annottext">(MungedPackageId -&gt; MungedPackageName)
-&gt; (pkg -&gt; MungedPackageId) -&gt; pkg -&gt; MungedPackageName
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">pkg -&gt; MungedPackageId
forall pkg. HasMungedPackageId pkg =&gt; pkg -&gt; MungedPackageId
</span><a href="Distribution.Package.html#mungedId"><span class="hs-identifier hs-var">mungedId</span></a></span><span>
</span><span id="line-66"></span><span>
</span><span id="line-67"></span><span id="local-6989586621679660184"><span class="annot"><a href="Distribution.Package.html#mungedVersion%27"><span class="hs-identifier hs-type">mungedVersion'</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Package.html#HasMungedPackageId"><span class="hs-identifier hs-type">HasMungedPackageId</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660184"><span class="hs-identifier hs-type">munged</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679660184"><span class="hs-identifier hs-type">munged</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.Version.html#Version"><span class="hs-identifier hs-type">Version</span></a></span></span><span>
</span><span id="line-68"></span><span id="mungedVersion%27"><span class="annot"><span class="annottext">mungedVersion' :: forall munged. HasMungedPackageId munged =&gt; munged -&gt; Version
</span><a href="Distribution.Package.html#mungedVersion%27"><span class="hs-identifier hs-var hs-var">mungedVersion'</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">MungedPackageId -&gt; Version
</span><a href="Distribution.Types.MungedPackageId.html#mungedVersion"><span class="hs-identifier hs-var hs-var">mungedVersion</span></a></span><span> </span><span class="annot"><span class="annottext">(MungedPackageId -&gt; Version)
-&gt; (munged -&gt; MungedPackageId) -&gt; munged -&gt; Version
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">munged -&gt; MungedPackageId
forall pkg. HasMungedPackageId pkg =&gt; pkg -&gt; MungedPackageId
</span><a href="Distribution.Package.html#mungedId"><span class="hs-identifier hs-var">mungedId</span></a></span><span>
</span><span id="line-69"></span><span>
</span><span id="line-70"></span><span class="hs-keyword">class</span><span> </span><span id="HasMungedPackageId"><span class="annot"><a href="Distribution.Package.html#HasMungedPackageId"><span class="hs-identifier hs-var">HasMungedPackageId</span></a></span></span><span> </span><span id="local-6989586621679660185"><span class="annot"><a href="#local-6989586621679660185"><span class="hs-identifier hs-type">pkg</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-71"></span><span>  </span><span id="mungedId"><span class="annot"><a href="Distribution.Package.html#mungedId"><span class="hs-identifier hs-type">mungedId</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679660185"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.MungedPackageId.html#MungedPackageId"><span class="hs-identifier hs-type">MungedPackageId</span></a></span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier hs-type">Package</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.PackageId.html#PackageIdentifier"><span class="hs-identifier hs-type">PackageIdentifier</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-74"></span><span>  </span><span id="local-6989586621679660152"><span class="annot"><span class="annottext">packageId :: PackageIdentifier -&gt; PackageIdentifier
</span><a href="#local-6989586621679660152"><span class="hs-identifier hs-var hs-var hs-var hs-var">packageId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PackageIdentifier -&gt; PackageIdentifier
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span>
</span><span id="line-75"></span><span>
</span><span id="line-76"></span><span id="local-6989586621679660177"><span class="annot"><a href="Distribution.Package.html#packageName"><span class="hs-identifier hs-type">packageName</span></a></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier hs-type">Package</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660177"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679660177"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.PackageName.html#PackageName"><span class="hs-identifier hs-type">PackageName</span></a></span></span><span>
</span><span id="line-77"></span><span id="packageName"><span class="annot"><span class="annottext">packageName :: forall pkg. Package pkg =&gt; pkg -&gt; PackageName
</span><a href="Distribution.Package.html#packageName"><span class="hs-identifier hs-var hs-var">packageName</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PackageIdentifier -&gt; PackageName
</span><a href="Distribution.Types.PackageId.html#pkgName"><span class="hs-identifier hs-var hs-var">pkgName</span></a></span><span>    </span><span class="annot"><span class="annottext">(PackageIdentifier -&gt; PackageName)
-&gt; (pkg -&gt; PackageIdentifier) -&gt; pkg -&gt; PackageName
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">pkg -&gt; PackageIdentifier
forall pkg. Package pkg =&gt; pkg -&gt; PackageIdentifier
</span><a href="Distribution.Package.html#packageId"><span class="hs-identifier hs-var">packageId</span></a></span><span>
</span><span id="line-78"></span><span>
</span><span id="line-79"></span><span id="local-6989586621679660174"><span class="annot"><a href="Distribution.Package.html#packageVersion"><span class="hs-identifier hs-type">packageVersion</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier hs-type">Package</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660174"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679660174"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.Version.html#Version"><span class="hs-identifier hs-type">Version</span></a></span></span><span>
</span><span id="line-80"></span><span id="packageVersion"><span class="annot"><span class="annottext">packageVersion :: forall pkg. Package pkg =&gt; pkg -&gt; Version
</span><a href="Distribution.Package.html#packageVersion"><span class="hs-identifier hs-var hs-var">packageVersion</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PackageIdentifier -&gt; Version
</span><a href="Distribution.Types.PackageId.html#pkgVersion"><span class="hs-identifier hs-var hs-var">pkgVersion</span></a></span><span> </span><span class="annot"><span class="annottext">(PackageIdentifier -&gt; Version)
-&gt; (pkg -&gt; PackageIdentifier) -&gt; pkg -&gt; Version
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">pkg -&gt; PackageIdentifier
forall pkg. Package pkg =&gt; pkg -&gt; PackageIdentifier
</span><a href="Distribution.Package.html#packageId"><span class="hs-identifier hs-var">packageId</span></a></span><span>
</span><span id="line-81"></span><span>
</span><span id="line-82"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Distribution.Package.html#HasMungedPackageId"><span class="hs-identifier hs-type">HasMungedPackageId</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.MungedPackageId.html#MungedPackageId"><span class="hs-identifier hs-type">MungedPackageId</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-83"></span><span>  </span><span id="local-6989586621679660141"><span class="annot"><span class="annottext">mungedId :: MungedPackageId -&gt; MungedPackageId
</span><a href="#local-6989586621679660141"><span class="hs-identifier hs-var hs-var hs-var hs-var">mungedId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">MungedPackageId -&gt; MungedPackageId
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span>
</span><span id="line-84"></span><span>
</span><span id="line-85"></span><span class="hs-comment">-- | Packages that have an installed unit ID</span><span>
</span><span id="line-86"></span><span class="hs-keyword">class</span><span> </span><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier hs-type">Package</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660172"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span id="HasUnitId"><span class="annot"><a href="Distribution.Package.html#HasUnitId"><span class="hs-identifier hs-var">HasUnitId</span></a></span></span><span> </span><span id="local-6989586621679660172"><span class="annot"><a href="#local-6989586621679660172"><span class="hs-identifier hs-type">pkg</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-87"></span><span>  </span><span id="installedUnitId"><span class="annot"><a href="Distribution.Package.html#installedUnitId"><span class="hs-identifier hs-type">installedUnitId</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679660172"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.Types.UnitId.html#UnitId"><span class="hs-identifier hs-type">UnitId</span></a></span><span>
</span><span id="line-88"></span><span>
</span><span id="line-89"></span><span class="hs-comment">-- | Class of installed packages.</span><span>
</span><span id="line-90"></span><span class="hs-comment">--</span><span>
</span><span id="line-91"></span><span class="hs-comment">-- The primary data type which is an instance of this package is</span><span>
</span><span id="line-92"></span><span class="hs-comment">-- 'InstalledPackageInfo', but when we are doing install plans in Cabal install</span><span>
</span><span id="line-93"></span><span class="hs-comment">-- we may have other, installed package-like things which contain more metadata.</span><span>
</span><span id="line-94"></span><span class="hs-comment">-- Installed packages have exact dependencies 'installedDepends'.</span><span>
</span><span id="line-95"></span><span class="hs-keyword">class</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Package.html#HasUnitId"><span class="hs-identifier hs-type">HasUnitId</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660170"><span class="hs-identifier hs-type">pkg</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span id="PackageInstalled"><span class="annot"><a href="Distribution.Package.html#PackageInstalled"><span class="hs-identifier hs-var">PackageInstalled</span></a></span></span><span> </span><span id="local-6989586621679660170"><span class="annot"><a href="#local-6989586621679660170"><span class="hs-identifier hs-type">pkg</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-96"></span><span>  </span><span id="installedDepends"><span class="annot"><a href="Distribution.Package.html#installedDepends"><span class="hs-identifier hs-type">installedDepends</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679660170"><span class="hs-identifier hs-type">pkg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Distribution.Types.UnitId.html#UnitId"><span class="hs-identifier hs-type">UnitId</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-97"></span></pre></body></html>